<{include file="Public/top.html"}>
</head>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">商务评价统计</div>
        <div class="ui-tab">
            <{include file="Editor/EditorData/nav.html"}>
        </div>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action='' method="get" class="ui-form reportForm" id="searchForm">
                    <input name="m" type="hidden" value="<{$module}>">
                    <input name="c" type="hidden" value="<{$controller}>">
                    <input name="a" type="hidden" value="<{$action}>">
                    <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                    <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">

                    <div class="ui-form-item inline-block">
                        <label class="ui-label">开始时间</label>
                        <input type="text" name="startDate" id="startDate" class="ui-text startDate" value="<{$startDate}>" readonly/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">结束时间</label>
                        <input type="text" name="endDate" id="endDate" class="ui-text endDate" value="<{$endDate}>" readonly/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">达人类型</label>
                        <select name="type" class="ui-select" style="width: 100px;">
                            <option value="0" selected>全部</option>
                            <option value="1" <{if $type==1}>selected<{/if}>>文章</option>
                            <option value="2" <{if $type==2}>selected<{/if}>>活动</option>
                        </select>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">关键字</label>
                        <input type="text" class="ui-text bg-text keyword" placeholder="发稿人/评论人" name="keyword" value="<{$keyword}>"/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                    </div>
                </form>
            </div>
        </div>

        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                <tr>
                    <th class="pct10">评论日期</th>
                    <th class="pct10">类型</th>
                    <th class="pct20">名称</th>
                    <th class="pct8">发稿人</th>
                    <th class="pct8">评论人</th>
                    <th class="pct8">星级</th>
                    <th class="pct20 last-col">说明</th>
                </tr>
                </thead>
                <tbody>
                <{if $data}>
                    <{foreach from=$data item=item}>
                        <tr>
                            <td><{$item.evaluateTime|date_format:"%Y-%m-%d"}></td>
                            <td><{$item.objType}></td>
                            <td><{$item.title}></td>
                            <td><{$item.editorName}></td>
                            <td><{$item.commerceName}></td>
                            <td><{$item.score}></td>
                            <td><{$item.content}></td>
                        </tr>
                    <{/foreach}>
                <{else}>
                    <tr>
                        <td colspan="7">暂无数据</td>
                    </tr>
                <{/if}>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
            <{include file="Public/page.html"}>
        </div>
    </div>
</div>
<{include file="Public/foot.html"}>
<script>
    datePickter('startDate','endDate',1);
</script>
</body>
</html>
